import { Component, OnInit } from '@angular/core';
@Component({
    selector: 'app-root',
    templateUrl: './app.component.html',
    styleUrls: ['./app.component.scss']
})
export class AppComponent implements OnInit {
    markdown = `# 这是一段测试\n\n- hello world!`;
    mode = 1;

    constructor() {
    }
    ngOnInit(): void {
    }

    changeMode(): void {
        if (this.mode === 1) {
            this.mode = 2;
        } else {
            this.mode = 1;
        }
    }
}
